//
//  SAViewController.m
//  runtimeStudy
//
//  Created by 孙奥 on 12/23/2021.
//  Copyright (c) 2021 孙奥. All rights reserved.
//

#import "SAViewController.h"
#import "CTMediator+runtimeCTMediator.h"
#import "person.h"
#import <Vision/vision.h>
#import"CTMediator.h"
#import "ASIHTTPRequest.h"
@interface SAViewController ()
{
}
@end

@implementation SAViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}
 
-(void)viewDidAppear:(BOOL)animated
{
    UIViewController *vc = [[CTMediator sharedInstance] CTMediator_viewController];
    vc.modalPresentationStyle = UIModalPresentationFullScreen;
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
    nav.modalPresentationStyle = UIModalPresentationFullScreen;
    [self presentViewController:nav animated:YES completion:nil];
    
//    NSURL*url
//    = [NSURL URLWithString:@"http://allseeing-i.com"];
//
//    ASIHTTPRequest*request
//    = [ASIHTTPRequest requestWithURL:url];
//
//    [request startSynchronous];
//
//    NSError*error
//    = [request error];
//
//    if(!error){
//
//        NSString*response
//        = [request responseString];
//    }
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
